<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />


	<title><?php echo CHtml::encode($this->pageTitle); ?></title>

	<?php
	$moduleId = $this->module->getId();
	$cs = Yii::app()->getClientScript();
	$cs->registerCssFile($this->getModule()->assetsUrl.'/css/hq.css');
	?>
</head>

<body>

<div class="container" id="page">
	<div id="mainmenu">

    <?php $this->widget('bootstrap.widgets.TbNavbar', array(
    	 'type'=>'inverse', // null or 'inverse'
		'fixed'=>false,
		'brand'=>'',
		'brandUrl'=>'#',
		'collapse'=>true, // requires bootstrap-responsive.css
		'items'=>array(
			array(
				'class'=>'bootstrap.widgets.TbMenu',
				'items'=>array(
				array('label'=>'Sản phẩm', 'url'=>'#', 'items'=>array(
						array('label'=>'Quản lý', 'url'=>array('/hq/product/admin')),
						array('label'=>'Tạo mới sản phẩm', 'url'=>array('/hq/product/create')),
						array('label'=>'Quản lý chuyên mục', 'url'=>array('/hq/catProduct/admin')),
				)),
				array('label'=>'Dịch vụ', 'url'=>'#', 'items'=>array(
						array('label'=>'Quản lý', 'url'=>array('/hq/service/admin')),
						array('label'=>'Tạo mới sản phẩm', 'url'=>array('/hq/service/create')),
						array('label'=>'Quản lý chuyên mục', 'url'=>array('/hq/catService/admin')),
				)),

				array('label'=>'Tin tức', 'url'=>'#', 'items'=>array(
						array('label'=>'Quản lý', 'url'=>array('/hq/category/admin')),
						array('label'=>'Tạo mới', 'url'=>array('/hq/news/create')),
						array('label'=>'Quản lý chuyên mục', 'url'=>array('/hq/category/admin')),
				)),
				array('label'=>'Cấu hình', 'url'=>'#', 'items'=>array(
						array('label'=>'Hỗ trợ trực tuyến', 'url'=>array('/hq/hotLine/admin')),
						array('label'=>'Banner', 'url'=>array('/user/user/create')),
				)),
				array('label'=>'User',
					'url'=>'/hq/user/admin'
				),
			),
		),
		array(
			'class'=>'bootstrap.widgets.TbMenu',
			'htmlOptions'=>array('class'=>'pull-right'),
			'items'=>array(
				array('label'=>'Sign Out('.Yii::app()->user->name.')', 'url'=>array('/user/logout'),
					'visible'=>!Yii::app()->user->isGuest,
				),
			array('label'=>'Sign In', 'url'=>array('/user/login'),
				'visible'=>Yii::app()->user->isGuest,
				),
		),
	),
),
	)); ?>


	</div><!-- mainmenu -->
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>

	<?php echo $content; ?>

	<div id="footer">

	</div><!-- footer -->

</div><!-- page -->

</body>
</html>